﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Columns.Master" AutoEventWireup="true"
    CodeBehind="Schedule.aspx.cs" Inherits="SharingCenter.Web.User.Events.Schedule" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    我的活动日程
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .eventitem td{height:30px;}
    .eventitem .useravatar{border:1px solid silver!important;padding:1px;}
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
     <myuc:GenericTabs ID="GenericTabs1" runat="server" SelectedItem="schedule" Section="MyEvent" />
   
    <h2 class="bb">
      <span class="nss ns-calendar"></span>
        <span class="iconlabel">我的活动日程</span></h2>
    
    <div class="eventview">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:ListView ID="ListView1" runat="server" InsertItemPosition="None">
                    <LayoutTemplate>
                        <div id="itemPlaceholder" runat="server" />
                    </LayoutTemplate>
                    <ItemTemplate>
                        <div class="eventitem<%#((Container.DisplayIndex+1) % 2 == 0)?" m":""%>">
                            <asp:Label ID="Label1" runat="server" CssClass="eventdate" Text='<%#Eval("StartDate", "{0:dddd M月d日}") %>'></asp:Label>
                            <span class="eventtext">
                                <asp:HyperLink runat="server" Text='<%#Eval("Title") %>' NavigateUrl='<%#Eval("EventId", "~/Mod/Events/View.aspx?id={0}") %>' />
                                <asp:Label ID="Label2" runat="server" Text='<%#"("+Eval("Place")+Eval("Venue")+")" %>'></asp:Label></span>
                        </div>
                    </ItemTemplate>
                    <EmptyDataTemplate>
                        <span class="litetext">
                            <img src="../../Content/images/icons/bubble_16.png" alt="" />
                            没有更多的活动可显示。</span>
                    </EmptyDataTemplate>
                </asp:ListView>
                <div class="actionarea textfar">
                    <span>显示
                    <%=displayFromDate.ToString("M月d日")%>
                    到
                    <%=displayBeforeDate.ToString("M月d日")%>
                    的活动。</span>
                    <asp:LinkButton ID="lnkAllEvents" runat="server">更多活动</asp:LinkButton>
                    <%if (Convert.ToBoolean(ViewState["DISPLAY_CHANGED"]))
                      { %>
                    |
                    <asp:LinkButton ID="lnkRecentEvents" runat="server">近期活动</asp:LinkButton>
                    <%} %>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>

<asp:Content runat="server" ContentPlaceHolderID="RightSidebarContentPlaceHolder">
    <div class="ctn2">
    
   <%-- <asp:Calendar ID="Calendar1" runat="server" BorderStyle="None"
     CssClass="cal" DayStyle-CssClass="day" OtherMonthDayStyle-CssClass="day othermonthday"
      CellSpacing="0" TodayDayStyle-CssClass="day today" DayHeaderStyle-CssClass="dayheader"
       NextPrevStyle-CssClass="nextprev" WeekendDayStyle-CssClass="day weekend">--%>
        
    </asp:Calendar>
    </div>
</asp:Content>